package com.meiwenhui.sishuwujing.entities;

import com.orm.androrm.Model;
import com.orm.androrm.field.CharField;
import com.orm.androrm.field.IntegerField;
import com.orm.androrm.field.TextField;

public class Article extends Model {

	protected IntegerField _id;
	protected CharField book;
	protected CharField chapter;
	protected CharField author;
	protected TextField content;

	public Integer get_id() {
		return _id.get();
	}

	public void set_id(Integer _id) {
		this._id.set(_id);
	}

	public String getBook() {
		return book.get();
	}

	public void setBook(String book) {
		this.book.set(book);
	}

	public String getChapter() {
		return chapter.get();
	}

	public void setChapter(String chapter) {
		this.chapter.set(chapter);
	}

	public String getAuthor() {
		return author.get();
	}

	public void setAuthor(String author) {
		this.author.set(author);
	}

	public String getContent() {
		return content.get();
	}

	public void setContent(String content) {
		this.content.set(content);
	}

	public Article() {
		super();
		this._id = new IntegerField();
		this.book = new CharField(255);
		this.chapter = new CharField(255);
		this.author = new CharField(255);
		this.content = new TextField();
	}
}
